<% layout('/layouts/default.html', {title: '进度滞后事项', libs: ['dataGrid']}){ %>
<div class="main-content">
    <div class="box box-main">

        <div class="box-body">
            <#form:form id="searchForm" model="${supIndexSix}" action="${ctx}/home/supIndex/supIndexSixList?taskYear=${supIndexSix.taskYear}&leaderOrgCode=${supIndexSix.leaderOrgCode}" method="post" class="form-inline"
            data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
        </#form:form>
        <table id="dataGrid"></table>
        <div id="dataGridPage"></div>
    </div>
</div>
</div>
<% } %>
<script>
    // 初始化DataGrid对象
    $('#dataGrid').dataGrid({
        searchForm: $("#searchForm"),
        sortableColumn: false, // 列表不允许排序
        columnModel: [
            {header:'${text("任务标题")}', name:'taskTitle', width:150, align:"left", frozen:true, formatter: function(val, obj, row, act){
                if(row.taskId != null){
                    return '<a href="${ctx}/taskdeploy/dcSupTaskInfo/detailForm?id='+row.taskId+'" class="btnList" data-title="${text("督办任务信息")}">'+(val||'暂无标题')+'</a>';
                } else {
                    return row.taskTitle
                }
            }},
            {header:'${text("任务内容")}', name:'taskContent', width:150, align:"left"},
            {header:'${text("牵头责任单位")}', name:'leaderOrgName', width:150, align:"left"},

            {header:'${text("操作")}', name:'actions', width:260,align:"center", formatter: function(val, obj, row, act){
                    var actions = [];
                    actions.push('<a href="${ctx}/audit/taskReceive/taskReceiveOneView?remarks2=0&id='+row.id+'" class="btn btn-primary btn-xs btnList" title="${text("查看")}" ><span>查看</span></a>&nbsp;');
                return actions.join('');
            }}
    ],
    // 加载成功后执行事件
    ajaxSuccess: function(data){

    }
    });

</script>